#include "../include/extendedspefparser.h"

void ExtendedSpefParser::readSpefFile ()
{
	
	std::string net ;
	double cap ;
	
	bool valid = (*this).read_net_cap (net, cap) ;
	
	while (valid) {
		//cout << "Lumped cap of net: " << net <<  " is " << cap <<  endl ;
		this->mapNetParasiticLoads[net] = cap ;
		valid = (*this).read_net_cap (net, cap) ;
	}
}

double ExtendedSpefParser::getParasitic (std::string netName)
{
	return this->mapNetParasiticLoads[netName] ;
}
